package service

import (
	"awesomeTask/application/client"
	"awesomeTask/application/timer"
)

type ServerTimerService struct {
}

/**
注册服务器的定时任务
*/
func (ioc ServerTimerService) Register() {
	timer.SetTimeInterval(func() {
		for _, node := range client.Nodes {
			node.AskClientSendCurrentStatus()
		}
	}, timer.Minute)
}
func (ioc ServerTimerService) Boot() {

}
